1b0fde11c1878682a4b99e901b9a9d871e6fb539,collect_app/src/main/java/org/odk/collect/android/activities/GeoPointActivity.java,GeoPointActivity,onPause,#,129
Before Change
super.onPause();
// stops the GPS. Note that this will turn off the GPS if the screen goes to sleep.
mLocationManager.removeUpdates(this);
// We're not using managed dialogs, so we have to dismiss the dialog to prevent it from
// leaking memory.
After Change
super.onPause();
// stops the GPS. Note that this will turn off the GPS if the screen goes to sleep.
if (mLocationManager != null) {
mLocationManager.removeUpdates(this);
}
// We're not using managed dialogs, so we have to dismiss the dialog to prevent it from